﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="timetable.aspx.cs" Inherits="school_timetable" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>School - Time Table Setup</title>

    <script src="../include/js/form.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="bodyContentTop" runat="Server">
    <h1>
        Timetable</h1>
    <h3>
        How many timetables have in selected school?.</h3>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="bodyContent" runat="Server">
    <div runat="server" visible="false">
        TimeTableKey:<asp:Label runat="server" Text="-1" ID="lblTimeTableKey" />
    </div>
    <div class="elements_inner_wrapper">
        <div id="contentBody">
            <div class="section">
                <div class="seperator">
                </div>
                <fieldset class="formouter">
                    <table cellpadding="3" cellspacing="3" width="100%">
                        <tr>
                            <td colspan="2" valign="top">
                                <div class="row_curved" id="divSchoolList" runat="server" title="Example:UCSM, MIT, YTU">
                                    <label for="<%=ddlSchoolList.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Selected School Name" ID="Label2" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList AutoPostBack="True" runat="server" ID="ddlSchoolList" OnSelectedIndexChanged="ddlSchoolList_SelectedIndexChanged"
                                                DataSourceID="ObjectDataSource1" DataTextField="ListText" DataValueField="ListValue" />
                                            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="SIS.ENT.Listing"
                                                DeleteMethod="Delete" OldValuesParameterFormatString="original_{0}" SelectMethod="GetList"
                                                TypeName="SIS.BLL.ListingManager" UpdateMethod="Save">
                                                <SelectParameters>
                                                    <asp:Parameter DefaultValue="1" Name="ListType" Type="Int32" />
                                                </SelectParameters>
                                            </asp:ObjectDataSource>
                                            &nbsp;&nbsp; </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                <div class="row_curved" id="divSchoolMajor" runat="server" title="Example:UCSM, MIT, YTU">
                                    <label for="<%=ddlSchoolMajor.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Major" ID="lblSchoolMajorCaption" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList AutoPostBack="True" runat="server" ID="ddlSchoolMajor" OnSelectedIndexChanged="ddlSchoolMajor_SelectedIndexChanged"
                                                DataSourceID="odsSchoolMajor" DataTextField="Description" DataValueField="SchoolMajorKey" />
                                            <asp:ObjectDataSource ID="odsSchoolMajor" runat="server" DeleteMethod="Delete" OldValuesParameterFormatString="original_{0}"
                                                SelectMethod="GetList" TypeName="SIS.BLL.SchoolMajorTableManager" DataObjectTypeName="SIS.ENT.SchoolMajorTable"
                                                UpdateMethod="Save">
                                                <DeleteParameters>
                                                    <asp:Parameter Name="SchoolMajorKey" Type="Int32" />
                                                </DeleteParameters>
                                                <SelectParameters>
                                                    <asp:ControlParameter ControlID="ddlSchoolList" Name="SchoolKey" PropertyName="SelectedValue"
                                                        Type="Int32" />
                                                </SelectParameters>
                                            </asp:ObjectDataSource>
                                            <asp:RequiredFieldValidator ID="rfvSchoolMajor" ValidationGroup="TimeTable" ControlToValidate="ddlSchoolList"
                                                runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage="<br/>Please select a school name.<br/>"></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="divStandardLevel" runat="server" title="Example:UCSM, MIT, YTU">
                                    <label for="<%=ddlStandardLevel.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Standard/Level Name" ID="lblStandardLevel" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList AutoPostBack="True" runat="server" ID="ddlStandardLevel" OnSelectedIndexChanged="ddlStandardLevel_SelectedIndexChanged"
                                                DataSourceID="odsStandarLevel" DataTextField="Description" DataValueField="StandardLevelKey"
                                                Style="height: 22px" />
                                            <asp:ObjectDataSource ID="odsStandarLevel" runat="server" OldValuesParameterFormatString="original_{0}"
                                                SelectMethod="GetList" TypeName="SIS.BLL.StandardLevelTableManager" DataObjectTypeName="SIS.ENT.StandardLevelTable"
                                                DeleteMethod="Delete" UpdateMethod="Save">
                                                <SelectParameters>
                                                    <asp:ControlParameter ControlID="ddlSchoolList" Name="SchoolKey" PropertyName="SelectedValue"
                                                        Type="Int32"></asp:ControlParameter>
                                                    <asp:ControlParameter ControlID="ddlSchoolMajor" Name="SchoolMajorKey" PropertyName="SelectedValue"
                                                        Type="Int32" />
                                                </SelectParameters>
                                            </asp:ObjectDataSource>
                                            <asp:RequiredFieldValidator ID="rfvStandardLevel" ValidationGroup="TimeTable" ControlToValidate="ddlStandardLevel"
                                                runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage="<br/>Please select a standard level.<br/>"></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </td>
                            <td valign="top">
                                <div class="row_curved" id="divLocation" runat="server" title="Example:UCSM, MIT, YTU">
                                    <label for="<%=ddlLocation.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Location Name" ID="lblLocation" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList AutoPostBack="True" runat="server" ID="ddlLocation" OnSelectedIndexChanged="ddlLocation_SelectedIndexChanged"
                                                DataSourceID="odsLocation" DataTextField="LocationName" DataValueField="LocationKey"
                                                Style="height: 22px" />
                                            <asp:ObjectDataSource ID="odsLocation" runat="server" OldValuesParameterFormatString="original_{0}"
                                                SelectMethod="GetList" TypeName="SIS.BLL.LocationTableManager" DataObjectTypeName="SIS.ENT.LocationTable"
                                                UpdateMethod="Save">
                                                <SelectParameters>
                                                    <asp:ControlParameter ControlID="ddlSchoolList" Name="SchoolKey" PropertyName="SelectedValue"
                                                        Type="Int32" />
                                                </SelectParameters>
                                            </asp:ObjectDataSource>
                                            <asp:RequiredFieldValidator ID="rfvLocation" ValidationGroup="TimeTable" ControlToValidate="ddlLocation"
                                                runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage="<br/>Please select a location.<br/>"></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="divPeriod" runat="server" title="Example:Only for BEHS 10. Not avialble now.">
                                    <label for="<%=ddlPeriod.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Period" ID="Label6" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList ID="ddlPeriodStartYear" AutoPostBack="true" runat="server" OnSelectedIndexChanged="ddlPeriodStartYear_SelectedIndexChanged" />
                                            <asp:DropDownList ID="ddlPeriod" runat="server" DataSourceID="sqlDSEdudationPeriodList"
                                                DataTextField="Description" DataValueField="EducationPeriodKey" AutoPostBack="True"
                                                OnSelectedIndexChanged="ddlPeriod_SelectedIndexChanged" />
                                            <asp:SqlDataSource ID="sqlDSEdudationPeriodList" runat="server" ConnectionString="<%$ ConnectionStrings:sis.dbconn %>"
                                                SelectCommand="sprocEducationPeriodTableSelectList" SelectCommandType="StoredProcedure">
                                                <SelectParameters>
                                                    <asp:ControlParameter ControlID="ddlSchoolList" Name="SchoolKey" PropertyName="SelectedValue"
                                                        Type="Int32" />
                                                    <asp:ControlParameter ControlID="ddlLocation" Name="LocationKey" PropertyName="SelectedValue"
                                                        Type="Int32" />
                                                    <asp:ControlParameter ControlID="ddlStandardLevel" Name="StandardLevelKey" PropertyName="SelectedValue"
                                                        Type="Int32" />
                                                    <asp:ControlParameter ControlID="ddlPeriodStartYear" Name="StartYear" PropertyName="SelectedValue"
                                                        Type="String" />
                                                </SelectParameters>
                                            </asp:SqlDataSource>
                                            <asp:RequiredFieldValidator ID="rfvPeriod" ValidationGroup="TimeTable" ControlToValidate="ddlPeriod"
                                                runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage="<br/>Please select a period.<br/>"></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" valign="top" style="text-align: center;">
                                <asp:GridView ID="gvTimeTable" runat="server" AutoGenerateColumns="False" DataKeyNames="TimeTableKey"
                                    DataSourceID="sqlDSTimeTable" EmptyDataText="Please add a timetable for selected period"
                                    OnSelectedIndexChanged="gvTimeTable_SelectedIndexChanged" CellPadding="4" Width="100%"
                                    ForeColor="#333333" GridLines="None">
                                    <RowStyle BackColor="#EFF3FB" />
                                    <Columns>
                                        <asp:BoundField DataField="TimeTableKey" HeaderText="ID" InsertVisible="False" ReadOnly="True"
                                            SortExpression="TimeTableKey" />
                                        <asp:BoundField DataField="SchoolKey" HeaderText="SchoolKey" SortExpression="SchoolKey"
                                            Visible="False" />
                                        <asp:BoundField DataField="MajorKey" HeaderText="MajorKey" SortExpression="MajorKey"
                                            Visible="False" />
                                        <asp:BoundField DataField="StandardLevelKey" HeaderText="StandardLevelKey" SortExpression="StandardLevelKey"
                                            Visible="False" />
                                        <asp:BoundField DataField="LocationKey" HeaderText="LocationKey" SortExpression="LocationKey"
                                            Visible="False" />
                                        <asp:BoundField DataField="EducationPeriodlKey" HeaderText="EducationPeriodlKey"
                                            Visible="false" SortExpression="EducationPeriodlKey" />
                                        <asp:BoundField DataField="DayGroupCode" HeaderText="DayGroupCode" Visible="False"
                                            SortExpression="DayGroupCode" />
                                        <asp:BoundField DataField="DayGroupDesc" HeaderText="Day Group" SortExpression="DayGroupDesc" />
                                        <asp:BoundField DataField="StartTime" HeaderText="StartTime" SortExpression="StartTime" />
                                        <asp:BoundField DataField="SectionDuration" HeaderText="SectionDuration" SortExpression="SectionDuration" />
                                        <asp:BoundField DataField="NoOfSection" HeaderText="NoOfSection" SortExpression="NoOfSection" />
                                        <asp:BoundField DataField="BreakTimeNo" HeaderText="BreakTimeNo" SortExpression="BreakTimeNo" />
                                        <asp:CheckBoxField DataField="Status" HeaderText="Status" Visible="false" SortExpression="Status" />
                                        <asp:BoundField DataField="UserID" HeaderText="UserID" SortExpression="UserID" Visible="False" />
                                        <asp:BoundField DataField="CreatedDateTime" HeaderText="CreatedDateTime" SortExpression="CreatedDateTime"
                                            Visible="False" />
                                        <asp:BoundField DataField="ModifiedDateTime" HeaderText="ModifiedDateTime" SortExpression="ModifiedDateTime" />
                                        <asp:HyperLinkField Text="Details" DataNavigateUrlFormatString="timetable-details.aspx?ttid={0}"
                                            DataNavigateUrlFields="TimeTableKey" />
                                        <asp:HyperLinkField Text="Attendance" DataNavigateUrlFormatString="~/student/attendance.aspx?ttid={0}"
                                            DataNavigateUrlFields="TimeTableKey" />
                                        <asp:CommandField ShowSelectButton="true" ButtonType="Button" />
                                    </Columns>
                                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                    <EditRowStyle BackColor="#2461BF" />
                                    <AlternatingRowStyle BackColor="White" />
                                </asp:GridView>
                                <asp:SqlDataSource ID="sqlDSTimeTable" runat="server" ConnectionString="<%$ ConnectionStrings:sis.dbconn %>"
                                    SelectCommand="sprocTimeTableSelectListByPeriod" SelectCommandType="StoredProcedure">
                                    <SelectParameters>
                                        <asp:ControlParameter ControlID="ddlSchoolList" Name="SchoolKey" PropertyName="SelectedValue"
                                            Type="Int32" />
                                        <asp:ControlParameter ControlID="ddlSchoolMajor" Name="SchoolMajorKey" PropertyName="SelectedValue"
                                            Type="Int32" />
                                        <asp:ControlParameter ControlID="ddlStandardLevel" Name="StandardLevelKey" PropertyName="SelectedValue"
                                            Type="Int32" />
                                        <asp:ControlParameter ControlID="ddlLocation" Name="LocationKey" PropertyName="SelectedValue"
                                            Type="Int32" />
                                        <asp:ControlParameter ControlID="ddlPeriod" Name="EduPeriodKey" PropertyName="SelectedValue"
                                            Type="Int32" />
                                    </SelectParameters>
                                </asp:SqlDataSource>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:UpdatePanel runat="server" ID="UpdatePanel1">
                                    <ContentTemplate>
                                        <div class="row_curved" id="divStartTime" runat="server" title="Example:Only for BEHS 10. Not avialble now.">
                                            <label for="<%=ddlStartHour.ClientID%>" class="mand_red">
                                                <asp:Label runat="server" Text="Start Time" ID="Label8" />
                                            </label>
                                            <div class="field">
                                                <span class="indicator">Hour:<asp:DropDownList ID="ddlStartHour" runat="server" OnSelectedIndexChanged="ddlStartHour_SelectedIndexChanged"
                                                    AutoPostBack="true" />
                                                    Min:<asp:DropDownList ID="ddlStartMin" runat="server" OnSelectedIndexChanged="ddlStartMin_SelectedIndexChanged"
                                                        AutoPostBack="true" />
                                                </span>
                                            </div>
                                            <div class="clear">
                                            </div>
                                        </div>
                                        <div class="row_curved" id="divSectionDuration" runat="server" title="Example:Only for BEHS 10. Not avialble now.">
                                            <label for="<%=ddlSectionDurationHour.ClientID%>" class="mand_red">
                                                <asp:Label runat="server" Text="Section Duration" ID="Label3" />
                                            </label>
                                            <div class="field">
                                                <span class="indicator">Hour:<asp:DropDownList ID="ddlSectionDurationHour" runat="server"
                                                    OnSelectedIndexChanged="ddlSectionDurationHour_SelectedIndexChanged" AutoPostBack="true" />
                                                    Min:<asp:DropDownList ID="ddlSectionDurationMin" runat="server" OnSelectedIndexChanged="ddlSectionDurationMin_SelectedIndexChanged"
                                                        AutoPostBack="true" />
                                                </span>
                                            </div>
                                            <div class="clear">
                                            </div>
                                        </div>
                                        <div class="row_curved" id="divNoOfSection" runat="server" title="Example:Only for BEHS 10. Not avialble now.">
                                            <label for="<%=ddlNoOfSection.ClientID%>" class="mand_red">
                                                <asp:Label runat="server" Text="No. Of Section" ID="Label7" /></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:DropDownList ID="ddlNoOfSection" runat="server" OnSelectedIndexChanged="ddlNoOfSection_SelectedIndexChanged"
                                                        AutoPostBack="true" />
                                                </span>
                                            </div>
                                            <div class="clear">
                                            </div>
                                        </div>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                            <td>
                                <div class="row_curved" id="divDayGroup" runat="server" title="Example:Only for BEHS 10. Not avialble now.">
                                    <label for="<%=ddlDayGroup.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Day Group" ID="Label5" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList ID="ddlDayGroup" runat="server" DataSourceID="sqlDSDayGroup" DataTextField="Description"
                                                DataValueField="DayGroupCode" />
                                            <asp:SqlDataSource ID="sqlDSDayGroup" runat="server" ConnectionString="<%$ ConnectionStrings:sis.dbconn %>"
                                                SelectCommand="sprocDayGroupCodeTableSelectList" SelectCommandType="StoredProcedure">
                                            </asp:SqlDataSource>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ValidationGroup="TimeTable"
                                                ControlToValidate="ddlDayGroup" runat="server" CssClass="validationErrorControl"
                                                Display="Dynamic" ErrorMessage="<br/>Please select a day group.<br/>"></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <asp:UpdatePanel runat="server" ID="UpdatePanel5">
                                    <ContentTemplate>
                                        <div class="row_curved" id="divSectionBreak" runat="server" title="Example:Only for BEHS 10. Not avialble now.">
                                            <label for="<%=ddlSectionBreak.ClientID%>" class="mand_red">
                                                <asp:Label runat="server" Text="Break" ID="Label4" /></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:DropDownList ID="ddlSectionBreak" runat="server" OnSelectedIndexChanged="ddlSectionBreak_SelectedIndexChanged"
                                                        AutoPostBack="true" />
                                                </span>
                                            </div>
                                            <div class="clear">
                                            </div>
                                        </div>
                                        <div class="row_curved" id="divDetailStartTime" runat="server">
                                            <label>
                                                <asp:Label ID="lblDetailStartTime" Text="Time List" runat="server"></asp:Label></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:DropDownList ID="ddlTimeDesc" runat="server" />
                                                    <br />
                                                    <asp:DropDownList ID="ddlStartTime" runat="server" Visible="true" />
                                                    <asp:DropDownList ID="ddlEndTime" runat="server" Visible="true" />
                                                </span>
                                            </div>
                                            <div class="clear">
                                            </div>
                                        </div>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                <asp:UpdatePanel runat="server" ID="uplTimeDuration">
                                    <ContentTemplate>
                                        <div class="row_curved" id="divBreakTime1Duration" visible="false" runat="server"
                                            title="Example:Only for BEHS 10. Not avialble now.">
                                            <label for="<%=ddlBreakTime1DurationHour.ClientID%>" class="mand_red">
                                                <asp:Label runat="server" Text="Break Time 1" ID="lblBreakTime1Duration" />
                                            </label>
                                            <div class="field">
                                                <span class="indicator">Hour:<asp:DropDownList ID="ddlBreakTime1DurationHour" runat="server"
                                                    AutoPostBack="True" OnSelectedIndexChanged="ddlBreakTime1DurationHour_SelectedIndexChanged" />
                                                    Min:<asp:DropDownList ID="ddlBreakTime1DurationMin" runat="server" AutoPostBack="True"
                                                        OnSelectedIndexChanged="ddlBreakTime1DurationMin_SelectedIndexChanged" />
                                                </span>
                                            </div>
                                            <div class="clear">
                                            </div>
                                        </div>
                                        <div class="row_curved" id="divBreakTime3Duration" visible="false" runat="server"
                                            title="Example:Only for BEHS 10. Not avialble now.">
                                            <label for="<%=ddlBreakTime3DurationHour.ClientID%>" class="mand_red">
                                                <asp:Label runat="server" Text="Break Time 3" ID="lblBreakTime3Duration" />
                                            </label>
                                            <div class="field">
                                                <span class="indicator">Hour:<asp:DropDownList ID="ddlBreakTime3DurationHour" runat="server"
                                                    AutoPostBack="True" OnSelectedIndexChanged="ddlBreakTime3DurationHour_SelectedIndexChanged" />
                                                    Min:<asp:DropDownList ID="ddlBreakTime3DurationMin" runat="server" AutoPostBack="True"
                                                        OnSelectedIndexChanged="ddlBreakTime3DurationMin_SelectedIndexChanged" />
                                                </span>
                                            </div>
                                            <div class="clear">
                                            </div>
                                        </div>
                                        <div class="row_curved" id="divBreakTime5Duration" visible="false" runat="server"
                                            title="Example:Only for BEHS 10. Not avialble now.">
                                            <label for="<%=ddlBreakTime5DurationHour.ClientID%>" class="mand_red">
                                                <asp:Label runat="server" Text="Break Time 5" ID="lblBreakTime5Duration" />
                                            </label>
                                            <div class="field">
                                                <span class="indicator">Hour:<asp:DropDownList ID="ddlBreakTime5DurationHour" runat="server"
                                                    AutoPostBack="True" OnSelectedIndexChanged="ddlBreakTime5DurationHour_SelectedIndexChanged" />
                                                    Min:<asp:DropDownList ID="ddlBreakTime5DurationMin" runat="server" AutoPostBack="True"
                                                        OnSelectedIndexChanged="ddlBreakTime5DurationMin_SelectedIndexChanged" />
                                                </span>
                                            </div>
                                            <div class="clear">
                                            </div>
                                        </div>
                                        <div class="row_curved" id="divBreakTime7Duration" visible="false" runat="server"
                                            title="Example:Only for BEHS 10. Not avialble now.">
                                            <label for="<%=ddlBreakTime7DurationHour.ClientID%>" class="mand_red">
                                                <asp:Label runat="server" Text="Break Time 7" ID="lblBreakTime7Duration" />
                                            </label>
                                            <div class="field">
                                                <span class="indicator">Hour:<asp:DropDownList ID="ddlBreakTime7DurationHour" runat="server"
                                                    AutoPostBack="True" OnSelectedIndexChanged="ddlBreakTime7DurationHour_SelectedIndexChanged" />
                                                    Min:<asp:DropDownList ID="ddlBreakTime7DurationMin" runat="server" AutoPostBack="True"
                                                        OnSelectedIndexChanged="ddlBreakTime7DurationMin_SelectedIndexChanged" />
                                                </span>
                                            </div>
                                            <div class="clear">
                                            </div>
                                        </div>
                                        <div class="row_curved" id="divBreakTime9Duration" visible="false" runat="server"
                                            title="Example:Only for BEHS 10. Not avialble now.">
                                            <label for="<%=ddlBreakTime9DurationHour.ClientID%>" class="mand_red">
                                                <asp:Label runat="server" Text="Break Time 9" ID="lblBreakTime9Duration" />
                                            </label>
                                            <div class="field">
                                                <span class="indicator">Hour:<asp:DropDownList ID="ddlBreakTime9DurationHour" runat="server"
                                                    AutoPostBack="True" OnSelectedIndexChanged="ddlBreakTime9DurationHour_SelectedIndexChanged" />
                                                    Min:<asp:DropDownList ID="ddlBreakTime9DurationMin" runat="server" AutoPostBack="True"
                                                        OnSelectedIndexChanged="ddlBreakTime9DurationMin_SelectedIndexChanged" />
                                                </span>
                                            </div>
                                            <div class="clear">
                                            </div>
                                        </div>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                            <td valign="top">
                                <asp:UpdatePanel runat="server" ID="UpdatePanel4">
                                    <ContentTemplate>
                                        <div class="row_curved" id="divBreakTime2Duration" visible="false" runat="server"
                                            title="Example:Only for BEHS 10. Not avialble now.">
                                            <label for="<%=ddlBreakTime2DurationHour.ClientID%>" class="mand_red">
                                                <asp:Label runat="server" Text="Break Time 2" ID="lblBreakTime2Duration" />
                                            </label>
                                            <div class="field">
                                                <span class="indicator">Hour:<asp:DropDownList ID="ddlBreakTime2DurationHour" runat="server"
                                                    AutoPostBack="True" OnSelectedIndexChanged="ddlBreakTime2DurationHour_SelectedIndexChanged" />
                                                    Min:<asp:DropDownList ID="ddlBreakTime2DurationMin" runat="server" AutoPostBack="True"
                                                        OnSelectedIndexChanged="ddlBreakTime2DurationMin_SelectedIndexChanged" />
                                                </span>
                                            </div>
                                            <div class="clear">
                                            </div>
                                        </div>
                                        <div class="row_curved" id="divBreakTime4Duration" visible="false" runat="server"
                                            title="Example:Only for BEHS 10. Not avialble now.">
                                            <label for="<%=ddlBreakTime4DurationHour.ClientID%>" class="mand_red">
                                                <asp:Label runat="server" Text="Break Time 4" ID="lblBreakTime4Duration" />
                                            </label>
                                            <div class="field">
                                                <span class="indicator">Hour:<asp:DropDownList ID="ddlBreakTime4DurationHour" runat="server"
                                                    AutoPostBack="True" OnSelectedIndexChanged="ddlBreakTime4DurationHour_SelectedIndexChanged" />
                                                    Min:<asp:DropDownList ID="ddlBreakTime4DurationMin" runat="server" AutoPostBack="True"
                                                        OnSelectedIndexChanged="ddlBreakTime4DurationMin_SelectedIndexChanged" />
                                                </span>
                                            </div>
                                            <div class="clear">
                                            </div>
                                        </div>
                                        <div class="row_curved" id="divBreakTime6Duration" visible="false" runat="server"
                                            title="Example:Only for BEHS 10. Not avialble now.">
                                            <label for="<%=ddlBreakTime6DurationHour.ClientID%>" class="mand_red">
                                                <asp:Label runat="server" Text="Break Time 6" ID="lblBreakTime6Duration" />
                                            </label>
                                            <div class="field">
                                                <span class="indicator">Hour:<asp:DropDownList ID="ddlBreakTime6DurationHour" runat="server"
                                                    AutoPostBack="True" OnSelectedIndexChanged="ddlBreakTime6DurationHour_SelectedIndexChanged" />
                                                    Min:<asp:DropDownList ID="ddlBreakTime6DurationMin" runat="server" AutoPostBack="True"
                                                        OnSelectedIndexChanged="ddlBreakTime6DurationMin_SelectedIndexChanged" />
                                                </span>
                                            </div>
                                            <div class="clear">
                                            </div>
                                        </div>
                                        <div class="row_curved" id="divBreakTime8Duration" visible="false" runat="server"
                                            title="Example:Only for BEHS 10. Not avialble now.">
                                            <label for="<%=ddlBreakTime8DurationHour.ClientID%>" class="mand_red">
                                                <asp:Label runat="server" Text="Break Time 8" ID="lblBreakTime8Duration" />
                                            </label>
                                            <div class="field">
                                                <span class="indicator">Hour:<asp:DropDownList ID="ddlBreakTime8DurationHour" runat="server"
                                                    AutoPostBack="True" OnSelectedIndexChanged="ddlBreakTime8DurationHour_SelectedIndexChanged" />
                                                    Min:<asp:DropDownList ID="ddlBreakTime8DurationMin" runat="server" AutoPostBack="True"
                                                        OnSelectedIndexChanged="ddlBreakTime8DurationMin_SelectedIndexChanged" />
                                                </span>
                                            </div>
                                            <div class="clear">
                                            </div>
                                        </div>
                                        <div class="row_curved" id="divBreakTime10Duration" visible="false" runat="server"
                                            title="Example:Only for BEHS 10. Not avialble now.">
                                            <label for="<%=ddlBreakTime10DurationHour.ClientID%>" class="mand_red">
                                                <asp:Label runat="server" Text="Break Time 10" ID="lblBreakTime10Duration" />
                                            </label>
                                            <div class="field">
                                                <span class="indicator">Hour:<asp:DropDownList ID="ddlBreakTime10DurationHour" runat="server"
                                                    OnSelectedIndexChanged="ddlBreakTime10DurationHour_SelectedIndexChanged" />
                                                    Min:<asp:DropDownList ID="ddlBreakTime10DurationMin" runat="server" OnSelectedIndexChanged="ddlBreakTime10DurationMin_SelectedIndexChanged" />
                                                </span>
                                            </div>
                                            <div class="clear">
                                            </div>
                                        </div>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" valign="top">
                                <div class="row_curved" style="background-color: #efefef;" id="divButton" runat="server">
                                    <label>
                                        &nbsp;</label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:Button ID="btnSubmit" CssClass="button_normal_submit" Text="Save" ValidationGroup="TimeTable"
                                                OnClientClick="SubmitOnClientClick(this, 'TimeTable');return confirm('Are you sure to SUMIT?');"
                                                runat="server" OnClick="btnSubmit_Click" />
                                            &nbsp;&nbsp;<asp:Button ID="btnDelete" Text="Delete" OnClientClick="return confirm('All schedules of timetable details will be deleted as well.\n\rAre you sure to DELETE?');"
                                                runat="server" OnClick="btnDelete_Click" />
                                            &nbsp;&nbsp;<asp:Button ID="btnNew" Text="New" OnClientClick="return confirm('Are you sure to create NEW?');"
                                                runat="server" OnClick="btnNew_Click" />
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="divMessage" runat="server">
                                    <label>
                                        &nbsp;</label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:Label ID="lblMessage" Font-Bold="true" runat="server"></asp:Label>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </div>
        </div>
    </div>

    <script type="text/javascript">
        //<![CDATA[
        SetSumitNormalButtonAttribute(document.getElementById('<%=btnSubmit.ClientID%>'));
        //]]>
    </script>

</asp:Content>
